@extends('layouts.admin')
@section('content')
	<div class="alert alert-success">编辑车型</div>
    @if(count($errors)>0)
        <div class="mark">
            @if(is_object($errors))
                @foreach($errors->all() as $error)
                    <p>{{$error}}</p>
                @endforeach
            @else
                <p>{{$errors}}</p>
            @endif
        </div>
    @endif
	<form action="{{url('admin/carModel/'.$omname->mid)}}" method="post">
        {{--put方法提交--}}
		<input type="hidden" name="_method" value="put">
        {{--CSRF保护--}}
		{{csrf_field()}}
		<div class="form-group">
			<label for="exampleInputEmail1">车型</label>
			<input type="text" name="mname" class="form-control" value="{{$omname->mname}}">
			{{--错误提示信息--}}
		</div>
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
	</form>
@endsection




